package com.zhl.spark.core.rddtransform

import com.zhl.spark.core.BasicRdd

/**
 * @program: demos
 * @description: ${description}
 * @author: 刘振华
 * @create: 2020-12-01 10:56
 **/
object coalesceRdd extends BasicRdd {
    def main(args: Array[String]): Unit = {
        test()
    }

    override def logic(): Unit = {
        val rdd = sc.makeRDD(List(1,2,3,4,5,6),2)

        rdd.coalesce(3,true).saveAsTextFile("spark//output")

    }
}
